﻿using Cms.Core.Data.Configurations;
using Cms.Core.Data.Infrastructure;
using System;

namespace Cms.Core.Data.Model
{
   public class AuditLog: EFEntityBase, IEFEntityBase
    {

        public AuditLog()
        {
            IsAutoAuditEntry = false;
        }


        public Guid? UserId { get; set; }

        //[Required]
        //[Column(TypeName = "nchar(1000)")]
        public string ServiceName { get; set; }

        //[Required]
        //[Column(TypeName = "nchar(1000)")]
        public string MethodName { get; set; }

        //[Required]
        //[Column(TypeName = "nvarchar(1500)")]
        public string Parameters { get; set; }

        public DateTime? ExecutionTime { get; set; }

        public long? ExecutionDuration { get; set; }

        //[Column(TypeName = "nchar(15)")]
        public string ClientIPAddress { get; set; }

        //[Column(TypeName = "nvarchar(50)")]
        public string ClientName { get; set; }

        //[Column(TypeName = "nchar(1000)")]
        public string BrowserInfo { get; set; }

        public string ExceptionInfo { get; set; }

        public string DisplayName { get; set; }

    }
}
